package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.NodePipeline;
/**
 * turbo_node_pipeline  RowWapper
 * 
 * @日期：2014-5-20 下午2:09:10
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class NodePipelineRowWapper implements RowMapper<NodePipeline> {

	@Override
	public NodePipeline mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		NodePipeline vo = new NodePipeline();
		vo.setId(rs.getString("id"));
		vo.setIsEmbed(rs.getString("isembed"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setNodeId(rs.getString("node_id"));
		vo.setNodeName(rs.getString("node_name"));
		vo.setIsLocal(rs.getString("islocal"));
		vo.setParamStr(rs.getString("paramstr"));
		vo.setPipeType(rs.getString("pipetype"));
		vo.setRemark(rs.getString("remark"));
		vo.setStatus(rs.getString("status"));
		return vo;
	}

}
